<pw:html>

    <pw:head>
        <title>SISCO - Asignar nuevo precio</title>

        <pw:component name="pw_include_view" data-src="head_scripts.html"></pw:component>

    </pw:head>

    <pw:body>

        <pw:component name="pw_include_view" data-src="header.html"></pw:component>


        <div class="container">
            <pw:component name="pw_include_view" data-src="messages.html"></pw:component>

            
            <pw:component name="pw_div" data-class="row" data-id="" data-show="true"><pw:container>

                    <pw:component name="pw_div" data-class="span3" data-id="" data-show="true"><pw:container>
                            <pw:component name="pw_include_view" data-src="precio_sidebar.html"></pw:component>

                        </pw:container></pw:component>


                    <pw:component name="pw_div" data-class="span9" data-id="" data-show="true"><pw:container>

                            <pw:component name="pw_form" data-class="" data-id="" data-show="true" data-action="" data-enctype="multipart/form-data" data-method="post"><pw:container>

                                    <pw:component name="pw_text" data-content="Asignar nuevo precio" data-tag="legend" data-free=""></pw:component>

                                    <pw:component name="pw_labeled_input" data-name="fecha_desde" data-id="fecha_desde" data-show="true" data-label="Fecha desde" data-type="date" data-value="{$precio->fecha_desde}" data-placeholder="" data-free=""></pw:component>

                                    
                                    <label for="valor">Valor</label>
                                    <div class="input-prepend">
                                        <span class="add-on">$</span>
                                        <input id="valor" name="valor" type="number" placeholder="" value="{$precio->valor}" step="0.01">
                                    </div>
                                                                        
                                    <pw:component name="pw_text" data-content="Producto" data-tag="label" data-free=""></pw:component>

                                    <pw:component name="pw_combo_box" data-from="productos" data-item="producto" data-show="true" data-name="producto" data-caption="descripcion" data-optvalue="id" data-selectedcond="$precio->producto->id == $producto->id"></pw:component>

                                    
                                    <pw:component name="pw_div" data-class="form-actions" data-id="" data-show="true"><pw:container>
                                            <pw:component name="pw_button" data-caption="Aceptar" data-id="" data-name="" data-type="submit" data-free="class='btn btn-primary'"></pw:component>

                                        </pw:container></pw:component>
 <!-- .form-actions -->

                                </pw:container></pw:component>
 <!-- form -->

                        </pw:container></pw:component>
 <!-- .span10 -->

                </pw:container></pw:component>
 <!-- .row -->

            <pw:component name="pw_include_view" data-src="footer.html"></pw:component>


        </div><!-- .container -->

        <pw:component name="pw_include_view" data-src="footer_scripts.html"></pw:component>

        
        <script>
            
            // Pongo la fecha de hoy
            jQuery(document).ready(function() {
                var d		= new Date();
                var fecha	= d.getFullYear() + '-' + ("0"+(d.getMonth() + 1)).slice(-2) + '-' + ("0"+d.getDate()).slice(-2);
                jQuery('#fecha_desde').val(fecha);
            });
                    
        </script>
        
    </pw:body>

</pw:html>